package com.company;

public class System_arrayCopy {
    public static void main(String[] args) {
        char[] srcArray = {'A', 'B', 'C', 'D'};
        char[] destArray = {'E', 'F', 'G', 'H'};
        System.arraycopy(srcArray, 1, destArray, 1, 2);
        System.out.println("源数组：");
        for (int i = 0; i < srcArray.length; i++) {
            System.out.println(srcArray[i]);
        }
        System.out.println("目标数组：");
        for (int j = 0; j < destArray.length; j++) {
            System.out.println(destArray[j]);
        }

    }
}